#pragma    once

#ifndef    _UTILITIES_
#define    _UTILITIES_

#define    WINDOW_WIDTH                                                800
#define    WINDOW_HEIGHT                                            600
#define    GO_UP                                                                            0
#define    GO_DOWN                                                                    1
#define    GO_LEFT                                                                    2
#define    GO_RIGHT                                                                3
//size    of    one    square    cell
#define    CELL_SIZE                                                            20
//number    of    cells    horizontal
#define    CELL_WIDTH                                                        (WINDOW_WIDTH    /    CELL_SIZE)
//number    of    cells    vertical
#define    CELL_HEIGHT                                                    (WINDOW_HEIGHT    /    CELL_SIZE)
#define    START_X                                                                    (CELL_WIDTH    /    2)
#define    START_Y                                                                    (CELL_HEIGHT    /    2)
#define    START_LENGTH                                                3

const    int    movex[]    =    {    0,    0,    -1,    1    };
const    int    movey[]    =    {    -1,    1,    0,    0    };

class    Point    {
public:
                int    x;
                int    y;
                Point(int    x    =0,    int    y=0)    {
                                this->x    =    x;
                                this->y    =    y;
                }
};

#endif